export  const  request = (method,url,data,header)=>{
    return new Promise((resolve)=>{
         wx.request({
             method,
             url,
             data,
             header,
             success:(res)=>{
                resolve(res);
             }
         })

    })


}


export  const  axios = ({method,url,data,header})=>{
    return new Promise((resolve)=>{
         wx.request({
             method,
             url,
             data,
             header,
             success:(res)=>{
                resolve(res);
             }
         })

    })


}